﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebPresentation
{
    public partial class DocumentUser : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void ImageButtonadvSearch_Click(object sender, ImageClickEventArgs e)
        {
            if (cbDocCode.Checked)
                Response.Redirect("~/SearchForUser.aspx?docCode=" + txtsearchcode.Text);
            if (cbSender.Checked)
                Response.Redirect("~/SearchForUser.aspx?sender=" + DropDownSearchSender.SelectedValue);
            if (cbFromDate.Checked)
                Response.Redirect("~/SearchForUser.aspx?fromDate=" + txtdate1.Text + "&toDate=" + txtdate2.Text);
            if (cbDocType.Checked)
                Response.Redirect("~/SearchForUser.aspx?docType=" + ddltype.SelectedValue);
        }
    }
}